import Vue from 'vue'
import Vuex from 'vuex'; 
Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        articleid:"",
        content:"",
        islogin:false,
        username:'nameless',
        email:'',
        articles:[],
        article:''
    },
    getters: {},
    actions: {},
    mutations: {
        getcontent(state,text){
            state.content=text
        },
    }
});

export default store;